package com.h.chatroom.service;

import com.h.chatroom.pojo.dataobject.Friend;
import com.h.chatroom.pojo.request.AddFriendRequest;
import com.h.chatroom.pojo.response.FriendListResponse;

import java.util.List;

public interface FriendService {
    List<FriendListResponse> getFriendList(Integer userId);

    List<Friend> findFriend(Integer userId, String name);

    void addFriend(Integer userId,Integer friendId, String reason);

    List<AddFriendRequest> getFriend(Integer userId);

    void acceptFriend(Integer friendId, Integer userId);

    void rejectFriend(Integer friendId, Integer userId);
}
